package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.entity.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BrandService extends IService<Brand> {
    PageDTO<BrandDTO> quaryPage(@Param("key") String key, @Param("page") Integer page, @Param("rows") Integer rows);

    List<BrandDTO> listBrandByBid(@Param("ids") List<Long> ids);

    List<BrandDTO> queryBrandByCid(@Param("id") Long id);

    BrandDTO queryBrandById(@Param("id") Long id);

    void addBrand(BrandDTO brandDTO);

    void updateBrand(BrandDTO brandDTO);

    void deleteBrand(@Param("id") Long id);
}